//
//  ZPVisitorViewController.swift
//  ZPWeiBo01
//
//  Created by Nevermore on 16/9/1.
//  Copyright © 2016年 Nevermore. All rights reserved.
//

import UIKit

class ZPVisitorViewController: UIViewController {
    
    var isLogin:Bool = false
    //访客视图View 
    var visitorView :ZPVisitorView?
    
    override func loadView() {
        if isLogin {
            super.loadView()
        }else{
            setupVisitorView()
        }
    }
    
    func setupVisitorView(){
        
        setupNav()
        
        visitorView = ZPVisitorView()
        
        view = visitorView
    }
    
    func setupNav(){
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", style: UIBarButtonItemStyle.Plain, target: self, action: "loginAction")
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "登录", style: UIBarButtonItemStyle.Plain, target: self, action: "loginAction")
        
    }
    func loginAction(){
        
        
        
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

       
    }

   
}
